<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('来源运单号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-from_express_no" autofocus="autofocus"  data-rule="required" readonly  class="form-control" name="row[from_express_no]" type="text" value="{$from_express_no}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('用户ID')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" autofocus="autofocus" required  data-rule="required"  class="form-control" name="row[user_id]" type="text" value="">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>

        </div>
    </div>
</form>

<script>

   // var form = document.getElementById("c-from_express_no");
  //  var field = form.elements("name");
   // window.onload = function(){
       //     field.focus();
     //   }
///

</script>
